using System.Collections.Generic;
using System.Text;
using System;
using NHibernate.Collection;
using NHibernate.Mapping;
using Iesi.Collections;
namespace JVLMRP 
{
    class MRPUnits 
    {
        string unitcode;
        string unitname;
        ISet mrpdetailsrequirementList;
        ISet mrpmasterordersList;
        ISet mrpproductsList;

        public MRPUnits()
        {

        }

        public virtual string Unitcode
        {
            get { return unitcode; }
            set { unitcode= value; }
        }

        public virtual string Unitname
        {
            get { return unitname; }
            set { unitname= value; }
        }

        public virtual ISet MrpdetailsrequirementList
        {
            get { return mrpdetailsrequirementList; }
            set { mrpdetailsrequirementList= value; }
        }

        public virtual ISet MrpmasterordersList
        {
            get { return mrpmasterordersList; }
            set { mrpmasterordersList= value; }
        }

        public virtual ISet MrpproductsList
        {
            get { return mrpproductsList; }
            set { mrpproductsList= value; }
        }

        public override string ToString()
        {
            String s = "";
            if(unitcode!=null)
	            s+= "unitcode : "+ unitcode.ToString()+"\n";
            else
	            s+= "unitcode : null\n";
            if(unitname!=null)
	            s+= "unitname : "+ unitname.ToString()+"\n";
            else
	            s+= "unitname : null\n";
            return s;
        }
    }
}
